import axios from "../../axios.js"

export default {
  // 获取返佣列表
  getFeeList_Api(data) {
    return axios({
      url: '/crm/costList',
      method: 'post',
      data
    })
  },
  // 查询详情
  getDetails_Api(data) {
    return axios({
      url: '/crm/selectCostById',
      method: 'get',
      params:data
    })
  },
  //  修改
  eidit_Api(data) {
    return axios({
      url: '/crm/updateCostById',
      method: 'post',
      data
    })
  },
  //  导出
  getOut_Api(data) {
    return axios({
      url: '/crm/costExport?fileName=中介返佣单.xlsx',
      method: 'post',
      data,
      responseType:'blob'
    })
  }
};
